// pages/reco/reco.js
Page({

  data: {
    
    tabs:[
      {
        id:0,
        name:"首页",
        isActive:true
      },
      {
        id:1,
        name:"说明",
        isActive:false
      },
      {
        id:2,
        name:"服务",
        isActive:false
      },
      {
        id:3,
        name:"团队",
        isActive:false
      },
    ]
  },
  handleItemChange(e){
    const {index}=e.detail;
    let {tabs}=this.data;
      tabs.forEach((v,i)=>i===index?v.isActive=true:v.isActive=false);
      this.setData({
        tabs
      })
  }
   
})